home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWViews / FWAPopu.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.7 KB  |  52 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAPopu.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. // We separate the archiving functions into their own translation units in order to
  10. // enable dead-stripping.
  11.  
  12. #include "FWFrameW.hpp"
  13.  
  14. #ifndef FWPOPUP_H
  15. #include "FWPopup.h"
  16. #endif
  17.  
  18. #ifdef FW_BUILD_MAC
  19. #pragma segment fwgadgts
  20. #endif
  21.  
  22. //========================================================================================
  23. // CLASS FW_CPopupMenu
  24. //========================================================================================
  25.  
  26. const FW_ClassTypeConstant FW_LPopupMenu = FW_TYPE_CONSTANT('p','o','p','m');
  27. FW_REGISTER_ARCHIVABLE_CLASS(FW_LPopupMenu, FW_CPopupMenu, FW_CPopupMenu::Create, FW_CView::Read, FW_CPopupMenu::Destroy, FW_CView::Write)
  28.  
  29. //----------------------------------------------------------------------------------------
  30. //    FW_CPopupMenu::Create
  31. //----------------------------------------------------------------------------------------
  32.  
  33. void* FW_CPopupMenu::Create(FW_CReadableStream& stream, FW_ClassTypeConstant type)
  34. {
  35. FW_UNUSED(stream);
  36. FW_UNUSED(type);
  37.     FW_SOMEnvironment ev;
  38.     return FW_NEW(FW_CPopupMenu, (ev));
  39. }
  40.  
  41. //----------------------------------------------------------------------------------------
  42. //    FW_CPopupMenu::Destroy
  43. //----------------------------------------------------------------------------------------
  44.  
  45. void FW_CPopupMenu::Destroy(void* object, FW_ClassTypeConstant type)
  46. {
  47. FW_UNUSED(type);
  48.     FW_CPopupMenu* self = (FW_CPopupMenu*) object;
  49.     delete self;
  50. }
  51.  
  52.